home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / Mesa-1.2.1 / samples / Makefile < prev    next >
Encoding:
Makefile  |  1995-07-05  |  1.2 KB  |  69 lines

  1. # Makefile for sample programs
  2.  
  3. # $Id: Makefile,v 1.4 1995/05/01 15:25:51 brianp Exp brianp $
  4.  
  5. # $Log: Makefile,v $
  6. # Revision 1.4  1995/05/01  15:25:51  brianp
  7. # clean up and reorganize
  8. #
  9. # Revision 1.3  1995/03/30  22:30:56  brianp
  10. # added new demos to PROGS
  11. #
  12. # Revision 1.2  1995/03/04  19:43:47  brianp
  13. # updated for Make-config
  14. #
  15. # Revision 1.1  1995/03/03  14:35:18  brianp
  16. # Initial revision
  17. #
  18.  
  19.  
  20. ##### MACROS #####
  21.  
  22. DESTDIR = /usr/skunk
  23.  
  24. INCDIR = ../include
  25.  
  26. GL_LIBS = -L../lib -lMesatk -lMesaGLU -lMesaGL -lm $(XLIBS)
  27.  
  28. LIB_DEP = ../lib/$(GL_LIB) ../lib/$(GLU_LIB) ../lib/$(TK_LIB) ../lib/$(AUX_LIB)
  29.  
  30. PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth \
  31.     eval fog font line logo oglinfo olympic \
  32.     overlay point prim quad select shape \
  33.     speed sphere star stencil stretch texture \
  34.     tri wave
  35.  
  36.  
  37.  
  38. ##### RULES #####
  39.  
  40. .SUFFIXES:
  41. .SUFFIXES: .c
  42.  
  43. .c: $(LIB_DEP)
  44.     $(CC) $(CFLAGS) $< $(GL_LIBS) -o $@
  45.  
  46.  
  47.  
  48. ##### TARGETS #####
  49.  
  50. default:
  51.     @echo "Specify a target configuration"
  52.  
  53. clean:
  54.     -rm *.o *~
  55.  
  56. realclean:
  57.     -rm $(PROGS)
  58.     -rm *.o *~
  59.  
  60. targets: $(PROGS)
  61.  
  62. install: $(PROGS)
  63.     -mkdir -p $(DESTDIR)/lib/Mesa/samples
  64.     -cp $(PROGS) $(DESTDIR)/lib/Mesa/samples
  65.  
  66. include ../Make-config
  67.  
  68.  
  69.